$(document).ready(function(){
	$(".box").delayedMouseover( function(event) { 
        var id = $(this).find(".iduser").text();
        $.ajax({
            type: "POST", url: AJAX_PATH+"wallblogger.ajax.php",
            data:"user="+id,
            beforeSend:function(){$('#selected').fadeOut("fast")},
            success:function(data){
                $('#selected').html(data)
            }
        });
        $('#selected').fadeIn("slow");
    }, { delay: 500 });
});


(function($) {
 
  $.fn.delayedMouseover = function(callback, options) {
 
	var options = $.extend({ delay: 1000 }, options);
 
	return this.each(function() {
		var obj = $(this);
		var timer = false;
		obj.mouseover( function(event) {
			if(timer) clearTimeout(timer);
			timer = setTimeout( function() { callback.apply(obj[0], [event]); }, options.delay );
		});		
		obj.mouseout( function(event) {
			if(timer) clearTimeout(timer);
			timer = false;
		});		
	});
  };
 
})(jQuery);